Skip to content

Comments

Update httprequest.cpp, fixed register bug#125

Open
RayTheCrack wants to merge 1 commit intomarkparticle:masterfrom
RayTheCrack:master
Open

Update httprequest.cpp, fixed register bug#125
RayTheCrack wants to merge 1 commit intomarkparticle:masterfrom
RayTheCrack:master

Conversation

@RayTheCrack
Copy link

  1. UserVerify方法 内注册行为的flag缺少else语句,导致sql语句无论执行是否成功均会赋值为true
  2. UserVerify方法 内最后可以依靠RAII机制自动释放mysql连接,无需手动释放,此举非必要,可能会导致资源重复释放

1. UserVerify方法 内注册行为的flag缺少else语句,导致sql语句无论执行是否成功均会赋值为true 
2. UserVerify方法 内 最后可以依靠RAII机制自动释放连接,无需手动释放,此举非必要,可能会导致资源重复释放
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant